package com.xpffly.design.handler.service.impl;

import com.xpffly.design.handler.service.Handler;
import com.xpffly.design.handler.service.Women;

/**
 * @Author: xpengfei
 * @Date: 2021/4/7 21:16
 * @Description：父亲类
 */
public class Father extends Handler {
    /**
     * 构造方法中设定父亲处理请求的级别
     */
    public Father() {
        super(Handler.FATHER_LEVEL_REQUEST);
    }

    @Override
    public void response(Women women) {
        System.out.println("--------女儿向父亲请示---------");
        System.out.println(women.getRequest());
        System.out.println("--------父亲答复：同意---------");
    }
}
